<div class="article_top">
  <%=render :partial=>"article_search" ,:object=>params[:title] %>
</div>
<div class="article">

  <div class="left">
    <% if @cate.parent_id? %>
      <% @articles=@cate.articles.paginate(:page=>params[:page],:per_page=>20,:order=>"created_at desc")
      @page_nav="><a href='#{list_article_category_articles_path(@cate.parent_id)}'>#{ArticleCategory.find(@cate.parent_id).name}</a>"
      @page_nav+="><a href='#{list_article_category_articles_path(@cate.id)}'>#{@cate.name}</a>>&nbsp;资讯列表"
      %>
      <%= will_paginate @articles %>
      <ul>
        <%= render :partial=>"item" ,:collection=>@articles,:locals=>{:dis_des=>true,:dis_time=>true} %>
      </ul>
    <% else %>
      <%  @page_nav="><a href='#{list_article_category_articles_path(@cate.id)}'>#{@cate.name}</a>>&nbsp;资讯列表" %>
      <%= render :partial=>"cate_list" ,:object=>ArticleCategory.find_all_by_parent_id(@cate.id) %>
    <% end %>

  </div>
  <div class="right">
    <div class="content">
      <% cache  :controller=>"advertisements",:action=>"list",:part=>"article_right_top" do %>
        <%=display_advertisement("ArticleRightTop") %>
      <% end %>
    </div>
    <% cache "hotnews",10.minutes.from_now.to_s do %>
      <%= render :partial=>"display/news_part",:object=>hotnews,:locals=>{:display_name=>"热点新闻"} %>
    <% end %>
  </div>
</div>
<%= render :partial=>"sub_menu" %>
<script type="text/javascript">
  $(window).load(function(){
    left=$(".article>.left");
    right=$(".article>.right");
    if(left.height()>right.height())
    {
      right.height(left.height());
    }
    else
    {
      left.height(right.height());
    }
  }
);
</script>